package com.woniuxy.woniuhis.entity;

import java.util.List;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Patient {
    private String patientId;
    
    private String patientName;

    private String patientIdcard;

    private String patientGender;

    private Integer patientAge;

    private String patientTel;

    private String address;

   
    
    //患者的门诊记录
    private List<Outpatient> outpatients;
    //患者的住院记录
    private List<Inpatient> inpatients;

	public Patient(String patientId,String patientName, String patientIdcard, String patientGender, Integer patientAge, String patientTel,
			String address ) {
		super();
		this.patientId = patientId;
		this.patientIdcard = patientIdcard;
		this.patientGender = patientGender;
		this.patientAge = patientAge;
		this.patientTel = patientTel;
		this.address = address;
		this.patientName = patientName;
	}

	@Override
	public String toString() {
		return "Patient [patientId=" + patientId + ", patientName=" + patientName + ", patientIdcard=" + patientIdcard
				+ ", patientGender=" + patientGender + ", patientAge=" + patientAge + ", patientTel=" + patientTel
				+ ", address=" + address + "]";
	}
	
	
}